313. Super Ugly Number
313. Super Ugly Number
Description
Solution
Use priority_queue to find the smallest number
Be careful about integer overflow.
Code
1 | class Solution { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.